<?php

Class AuthManageModel extends Model {


	/**
	 * 获取权限组列表
	 * @return [type] [description]
	 */
	public function getGroupList() {
		$data = $this->table($this->getAuthGroupTable())->where()->select();
		if(empty($data)) {
			return array();
		}
		return $data;
	}

	public function getGroupRow($map) {
		$data = $this->table($this->getAuthGroupTable())->where($map)->find();
		if(empty($data)) {
			return array();
		}
		return $data;
	}
	/**
	 * @return [type] [description]
	 */
	protected function getAuthGroupTable() {
		return C('DB_PREFIX') . C('AUTH_GROUP');
	}
}